package com.cy.pj.web.pojo.web;

import com.cy.pj.pojo.Item;
import com.cy.pj.service.ItemService;
import com.cy.pj.web.pojo.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ItemController {
    @Autowired
    private ItemService itemService;
    @RequestMapping("/item")
//    @GetMapping
    public JsonResult doFindItem(Item item){
        System.out.println("12567890");
        return new JsonResult(itemService.itemService(item));
    }
}
